﻿Imports System
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices

Namespace Google.Desktop.Interop
    <ComImport, Guid("ED5535A3-A40D-4AE2-9F88-37A0D15DE709"), TypeLibType(CShort(&H10C0))> _
    Public Interface IGoogleDesktopQuery
        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H414)> _
        Sub SetOption(<[In](), MarshalAs(UnmanagedType.BStr)> ByVal name As String, <[In](), MarshalAs(UnmanagedType.Struct)> ByVal value As Object)

        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H415)> _
        Function GetOption(<[In](), MarshalAs(UnmanagedType.BStr)> ByVal name As String) As <MarshalAs(UnmanagedType.Struct)> Object

        <DispId(&H416)> _
        ReadOnly Property Query() As <MarshalAs(UnmanagedType.BStr)> String

        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H417)> _
        Function Execute() As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopQueryResultSet

    End Interface
End Namespace

